package com.wang.lotterysystem.controller.param.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

@Data
@EqualsAndHashCode(callSuper = true)
public class UserPasswordLoginParam extends UserLoginParam{

    /*
    登录方式: 用户名+密码 或 手机号+密码
     */

    @Schema(description = "邮箱或手机号")
    @NotBlank(message = "邮箱或手机号不可为空")
    private String loginName;

    @Schema(description = "密码")
    @NotBlank(message = "密码不可为空")
    private String password;
}